Integrand size = 17, antiderivative size = 44 \[ \int \frac {\cot ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\frac {\cot \left (a+b \log \left (c x^n\right )\right )}{b n}-\frac {\cot ^3\left (a+b \log \left (c x^n\right )\right )}{3 b n}+\log (x) \]
[Out]
Time = 0.05 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {3554, 8} \[ \int \frac {\cot ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=-\frac {\cot ^3\left (a+b \log \left (c x^n\right )\right )}{3 b n}+\frac {\cot \left (a+b \log \left (c x^n\right )\right )}{b n}+\log (x) \]
[In]
[Out]
Rule 8
Rule 3554
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \cot ^4(a+b x) \, dx,x,\log \left (c x^n\right )\right )}{n} \\ & = -\frac {\cot ^3\left (a+b \log \left (c x^n\right )\right )}{3 b n}-\frac {\text {Subst}\left (\int \cot ^2(a+b x) \, dx,x,\log \left (c x^n\right )\right )}{n} \\ & = \frac {\cot \left (a+b \log \left (c x^n\right )\right )}{b n}-\frac {\cot ^3\left (a+b \log \left (c x^n\right )\right )}{3 b n}+\frac {\text {Subst}\left (\int 1 \, dx,x,\log \left (c x^n\right )\right )}{n} \\ & = \frac {\cot \left (a+b \log \left (c x^n\right )\right )}{b n}-\frac {\cot ^3\left (a+b \log \left (c x^n\right )\right )}{3 b n}+\log (x) \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.08 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.05 \[ \int \frac {\cot ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=-\frac {\cot ^3\left (a+b \log \left (c x^n\right )\right ) \operatorname {Hypergeometric2F1}\left (-\frac {3}{2},1,-\frac {1}{2},-\tan ^2\left (a+b \log \left (c x^n\right )\right )\right )}{3 b n} \]
[In]
[Out]
Time = 0.74 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.00
method | result | size |
parallelrisch | \(\frac {-{\cot \left (a +b \ln \left (c \,x^{n}\right )\right )}^{3}+3 \ln \left (x \right ) b n +3 \cot \left (a +b \ln \left (c \,x^{n}\right )\right )}{3 b n}\) | \(44\) |
derivativedivides | \(\frac {-\frac {{\cot \left (a +b \ln \left (c \,x^{n}\right )\right )}^{3}}{3}+\cot \left (a +b \ln \left (c \,x^{n}\right )\right )-\frac {\pi }{2}+\operatorname {arccot}\left (\cot \left (a +b \ln \left (c \,x^{n}\right )\right )\right )}{n b}\) | \(50\) |
default | \(\frac {-\frac {{\cot \left (a +b \ln \left (c \,x^{n}\right )\right )}^{3}}{3}+\cot \left (a +b \ln \left (c \,x^{n}\right )\right )-\frac {\pi }{2}+\operatorname {arccot}\left (\cot \left (a +b \ln \left (c \,x^{n}\right )\right )\right )}{n b}\) | \(50\) |
risch | \(\ln \left (x \right )+\frac {4 i \left (3 \left (x^{n}\right )^{4 i b} c^{4 i b} {\mathrm e}^{2 b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{-2 b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )} {\mathrm e}^{-2 b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}} {\mathrm e}^{2 b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )} {\mathrm e}^{4 i a}-3 \left (x^{n}\right )^{2 i b} c^{2 i b} {\mathrm e}^{-b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}} {\mathrm e}^{b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )} {\mathrm e}^{b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{-b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )} {\mathrm e}^{2 i a}+2\right )}{3 b n {\left (\left (x^{n}\right )^{2 i b} c^{2 i b} {\mathrm e}^{-b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}} {\mathrm e}^{b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )} {\mathrm e}^{b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{-b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )} {\mathrm e}^{2 i a}-1\right )}^{3}}\) | \(335\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 132 vs. \(2 (42) = 84\).
Time = 0.25 (sec) , antiderivative size = 132, normalized size of antiderivative = 3.00 \[ \int \frac {\cot ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\frac {4 \, \cos \left (2 \, b n \log \left (x\right ) + 2 \, b \log \left (c\right ) + 2 \, a\right )^{2} + 3 \, {\left (b n \cos \left (2 \, b n \log \left (x\right ) + 2 \, b \log \left (c\right ) + 2 \, a\right ) \log \left (x\right ) - b n \log \left (x\right )\right )} \sin \left (2 \, b n \log \left (x\right ) + 2 \, b \log \left (c\right ) + 2 \, a\right ) + 2 \, \cos \left (2 \, b n \log \left (x\right ) + 2 \, b \log \left (c\right ) + 2 \, a\right ) - 2}{3 \, {\left (b n \cos \left (2 \, b n \log \left (x\right ) + 2 \, b \log \left (c\right ) + 2 \, a\right ) - b n\right )} \sin \left (2 \, b n \log \left (x\right ) + 2 \, b \log \left (c\right ) + 2 \, a\right )} \]
[In]
[Out]
Time = 1.39 (sec) , antiderivative size = 65, normalized size of antiderivative = 1.48 \[ \int \frac {\cot ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\begin {cases} \log {\left (x \right )} \cot ^{4}{\left (a \right )} & \text {for}\: b = 0 \wedge \left (b = 0 \vee n = 0\right ) \\\log {\left (x \right )} \cot ^{4}{\left (a + b \log {\left (c \right )} \right )} & \text {for}\: n = 0 \\\frac {\log {\left (c x^{n} \right )}}{n} - \frac {\cot ^{3}{\left (a + b \log {\left (c x^{n} \right )} \right )}}{3 b n} + \frac {\cot {\left (a + b \log {\left (c x^{n} \right )} \right )}}{b n} & \text {otherwise} \end {cases} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 2172 vs. \(2 (42) = 84\).
Time = 0.28 (sec) , antiderivative size = 2172, normalized size of antiderivative = 49.36 \[ \int \frac {\cot ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\text {Too large to display} \]
[In]
[Out]
Timed out. \[ \int \frac {\cot ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\text {Timed out} \]
[In]
[Out]
Time = 35.99 (sec) , antiderivative size = 182, normalized size of antiderivative = 4.14 \[ \int \frac {\cot ^4\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\ln \left (x\right )+\frac {\frac {4{}\mathrm {i}}{3\,b\,n}+\frac {{\mathrm {e}}^{a\,4{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,4{}\mathrm {i}}\,4{}\mathrm {i}}{3\,b\,n}}{3\,{\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,2{}\mathrm {i}}-3\,{\mathrm {e}}^{a\,4{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,4{}\mathrm {i}}+{\mathrm {e}}^{a\,6{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,6{}\mathrm {i}}-1}+\frac {4{}\mathrm {i}}{3\,b\,n\,\left ({\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,2{}\mathrm {i}}-1\right )}+\frac {{\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,2{}\mathrm {i}}\,4{}\mathrm {i}}{3\,b\,n\,\left (1+{\mathrm {e}}^{a\,4{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,4{}\mathrm {i}}-2\,{\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,2{}\mathrm {i}}\right )} \]
[In]
[Out]